﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Gomoku
{
    public partial class ConfigForm : Form
    {
        public ConfigForm()
        {
            InitializeComponent();
        }
        public bool isStart = false;
        public int gameMode = 0;
        //0 - 双人对战
        //1 - 人机对战

        private void button1_Click(object sender, EventArgs e)
        {
            isStart = true;
            if (radioButton1.Checked)
            {
                gameMode = 0;
            }
            else if (radioButton2.Checked)
            {
                gameMode = 1;
            }
            Close();
        }
        private void ConfigForm_Load(object sender, EventArgs e)
        {
            button1.Focus();
        }

        private void RadioButton1_Click(object sender, EventArgs e)
        {
            button1.Focus();
        }

        private void RadioButton2_Click(object sender, EventArgs e)
        {
            button1.Focus();
        }
    }
}
